package com.ebelter.btlibrary.btble.impl.scale.upgrade;

/**
 * Created by Sergio Pan on 2017/11/11.
 */

public interface FirmwareUpgradeCallback {

    /**
     * 升级包应答
     * @param percent 百分点
     */
    public void onUpgradeResponse(int percent);

    /**
     * 升级结果
     * 00：OK
     * 01：超时ERR
     * 02：CS出错
     * 04：电量低
     * @param result
     */
    public void onUpgradeResult(int result, int type);

    /**
     * 低电提示
     */
    public void onLowPower();

}
